#include "MenuScene.h"
#include "HelloWorldScene.h"
 

CCScene* MenuScene::scene()
{
    CCSize winSize=  CCDirector::sharedDirector()->getWinSize();
    CCScene *scene = CCScene::create();
    scene->setContentSize(winSize);
    MenuScene *layer = MenuScene::create();
    
    layer->setPositionY(winSize.height);
    scene->addChild(layer);
    layer->loadConf(layer->confPath);
    return scene;
}

bool MenuScene::init()
{
    if ( !TPanel::init() )
    {
        return false;
    }
    
    confPath=("proj/view/MenuView.mxml");
    
    return true;
}


void MenuScene::procTuiEvent(const string& event,TPanelItem*){
    if(event=="enter"){ 
      //  CCScene *pScene = DDZRoom::scene();
       // CCDirector::sharedDirector()->replaceScene(pScene);
    }
}